#这个文件用来临时测试一些语句的用法与功能

import numpy as np

# 列表下表寻找测试
# list00 = [[1, 2, 3], [0, 2, 3, 4, 5], [0, 1, 3, 4, 5], 
# [0, 1, 2, 4, 5, 6, 7], [1, 2, 3, 5, 6, 7], 
# [1, 2, 3, 4, 6, 7, 8, 9], [3, 4, 5, 7, 8, 9], 
# [3, 4, 5, 6, 8, 9, 10, 11], [5, 6, 7, 9, 10, 11], 
# [5, 6, 7, 8, 10, 11, 12], [7, 8, 9, 11, 12, 13, 14], 
# [7, 8, 9, 10, 12, 13, 14, 15], [9, 10, 11, 13, 14, 15, 17], 
# [10, 11, 12, 14, 15, 16], [10, 11, 12, 13, 15, 16, 17], 
# [11, 12, 13, 14, 16, 17, 18, 19], [13, 14, 15, 17, 18, 19], 
# [12, 14, 15, 16, 18, 19, 20, 21], [15, 16, 17, 19, 20, 21], 
# [15, 16, 17, 18, 20, 21, 22, 23], [17, 18, 19, 21, 22, 23, 24], 
# [17, 18, 19, 20, 22, 23, 24, 25], [19, 20, 21, 23, 24, 25, 26], 
# [19, 20, 21, 22, 24, 25, 26, 27], [20, 21, 22, 23, 25, 26, 27, 29], 
# [21, 22, 23, 24, 26, 27, 28, 29], [22, 23, 24, 25, 27, 28, 29], 
# [23, 24, 25, 26, 28, 29], [25, 26, 27, 29], [24, 25, 26, 27, 28]]
# for i in range(0,8):
#   print(str(list00)[135+i*3])

# 矩阵乘法运算测试
# selfselfWeight=[0.2,0.2,0.2]
# toSelfInputVector=[5,5,32]
# print(np.multiply(toSelfInputVector, selfselfWeight))
# toSelf = np.sum(np.multiply(toSelfInputVector, selfselfWeight))
# print(toSelf)

# 指数函数pow用法
# print(pow(3,3))
# goal = 2
# goal = goal + pow(10, 2) * 9
# print(goal)

# 测试列表转为字符串后直接强转回去不可行
# num = '[12,25,36]'
# numint = int(num)
# print(numint)

# range用法测试，范围：参数1--参数2  ，步进：参数三，可以为负数
# for i in range(5 - 1, -1, -1):
#  print(i)